package com.yongbao.model.dtomapper;

import com.yongbao.model.domain.AdminRoleDO;
import com.yongbao.model.request.AdminRoleRequest;
import com.yongbao.model.vo.AdminRoleVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface AdminRoleDtoMapper {

    AdminRoleDtoMapper INSTANCE = Mappers.getMapper(AdminRoleDtoMapper.class);

    /**
    * DO to VO
    * @param adminRoleDO
    * @return
    */
    AdminRoleVO do2VO(AdminRoleDO adminRoleDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    AdminRoleDO request2DO(AdminRoleRequest request);
}
